/**
 * @Author: leibidong
 * @Description:post请求接收参数
 * @File:  loginVO
 * @Version: 1.0.0
 * @Date: 2021/7/3 12:44
 */

package vo

//接收登录参数
type Login struct {
	LoginName string `form:"loginName" json:"loginName" binding:"required"`
	Password  string `form:"password" json:"password" binding:"required"`
}

//接收一级类目名称
type FirstName struct {
	Name string `form:"name" json:"name" binding:"required"`
}

//更新id对应的类目名称参数
type UpdateFirstName struct {
	NewName string `form:"newName" json:"newName" binding:"required"`
	ID      int    `form:"id" json:"id" binding:"required"`
}

//添加二级类目名称
type AddSecondName struct {
	FirstName  string `form:"firstName" json:"firstName" binding:"required"`
	SecondName string `form:"secondName" json:"secondName" binding:"required"`
}

//更新二级类目名称
type UpdateSecondName struct {
	ID      int    `form:"id" json:"id" binding:"required"`
	NewName string `form:"newName" json:"newName" binding:"required"`
}

//添加商品
type AddProductMessage struct {
	Encoding          string `form:"encoding" json:"encoding" binding:"required"`
	Name              string `form:"name" json:"name" binding:"required"`
	OneCategoryId     string `form:"oneCategoryId" json:"oneCategoryId" binding:"required"`
	TwoCategoryId     string `form:"twoCategoryId" json:"twoCategoryId" binding:"required"`
	Price             string `form:"price" json:"price" binding:"required"`
	AverageCost       string `form:"averageCost" json:"averageCost" binding:"required"`
	ColorType         string `form:"colorType" json:"colorType" binding:"required"`
	RecommendDescript string `form:"recommendDescript" json:"recommendDescript" binding:"required"`
	Descript          string `form:"descript" json:"descript" binding:"required"`
	ProductPicUrl     string `form:"productPicUrl" json:"productPicUrl" binding:"required"`
	ProductPicDesc    string `form:"productPicDesc" json:"productPicDesc" binding:"required"`
}

//更新商品信息
type UpdateProductMessage struct {
	Id                int    `form:"id" json:"id" binding:"required"`
	Encoding          string `form:"encoding" json:"encoding" `
	Name              string `form:"name" json:"name" `
	Price             string `form:"price" json:"price" `
	AverageCost       string `form:"averageCost" json:"averageCost" `
	ColorType         string `form:"colorType" json:"colorType" `
	RecommendDescript string `form:"recommendDescript" json:"recommendDescript" `
	Descript          string `form:"descript" json:"descript" `
}

//添加商品库存
type AddWareHouse struct {
	ProductName string `form:"productName" json:"productName" binding:"required"`
	Cnt         int    `form:"cnt" json:"cnt" binding:"required"`
}

//更新商品库存
type UpdateWareHouse struct {
	Id  string `form:"id" json:"id" binding:"required"`
	Cnt int    `form:"cnt" json:"cnt" binding:"required"`
}
